The parotid gland is an exocrine gland located near the ear that is responsible for producing and secreting saliva into the oral cavity. Its primary function is to aid in the process of digestion by releasing enzymes and lubricating substances that facilitate the breakdown and moistening of food during chewing and swallowing.